#! /usr/bin/env python
# -*- coding: utf-8 -*-

from django.conf.urls import url
from restapi.views import userInfo
from restapi.views import poc
from restapi.views import param

urlpatterns = [
    url(r'^userinfo/create$', userInfo.create_user),  # 添加用户
    url(r'^userinfo/list$', userInfo.get_user_list),  # 获取用户信息list
    url(r'^userinfo/login$',userInfo.user_login),
    url(r'^userinfo/update$',userInfo.user_update),
    url(r'^userinfo/judgePass$', userInfo.judgePass),
    url(r'^userinfo/updatePass$', userInfo.user_pass_update),
    url(r'^param/rank$',param.get_user_rank),
    url(r'^userinfo/(?P<user_id>[0-9]+)/delete$', userInfo.delete_user),  # 删除poc数据
    url(r'^poc/list$', poc.get_poc_list),  # 获取个人poc list
    url(r'^poc/alllist$', poc.get_all_poc_list),  # 获取所有人poc list
    url(r'^track/(?P<poc_id>[0-9]+)/list$', poc.get_track_list),  # 根据poc_id获取track list
    url(r'^poc/create$', poc.create_poc),  # 创建poc
    url(r'^poc/update$', poc.update_poc),  # 更新poc
    url(r'^track/create$', poc.create_track),  # 创建track
    url(r'^track/update$', poc.update_track),  # 创建track
    url(r'^poc/(?P<poc_id>[0-9]+)/delete$', poc.delete_poc),  # 删除poc数据
    url(r'^track/(?P<track_id>[0-9]+)/delete$', poc.delete_track),  # 删除track数据
    url(r'^param/importance$', param.get_importance_param),  # 获取 importance
    url(r'^param/department$', param.get_department_param),  # 获取 department
    url(r'^param/progress$', param.get_progress_param),  # 获取progress


]
